package com.qf.mapper;

import com.qf.entity.TNotify;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*
杨威
2021/10/30
9:20
*/
public interface NotifyMapper {
    List<TNotify> findAll();
    void updateNotify(TNotify tNotify);
    //增加开关
    @Insert("insert into t_notify (tag,desp,notify_state,cache_state) values(#{tag},#{desp},#{notifyState},#{cacheState})")
    void addNotify(TNotify tNotify);
    //删除开关
    @Delete("delete from t_notify where id=#{id}")
    void deleteNotify(Long id);
}
